package net.sf.rose.business.bean.base;

import org.apache.commons.fileupload.FileItem;

/**
 * 上传下载文件组件
 * 
 * @author fengjian
 * @since 2014/07/05
 */
public class DownloadFileBean {

	private String index = null;

	private String name = null;

	private String fileName = null;

	private FileItem data = null;

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public FileItem getData() {
		return data;
	}

	public void setData(FileItem data) {
		this.data = data;
	}

	public String toString() {
		return name != null ? name : this.fileName;
	}
}
